package nz.co.doherty.gwtpbreadcrumbs.shared.rpc.product;

import nz.co.doherty.gwtpbreadcrumbs.shared.entity.Product;

import com.googlecode.objectify.Key;
import com.philbeaudoin.gwtp.dispatch.shared.Action;
import com.philbeaudoin.gwtp.dispatch.shared.ActionImpl;


public class ProductRetrieveAction implements Action<ProductRetrieveResult> {
	
	private Key<Product> product;
	
	private ProductRetrieveAction() {}
	
	public ProductRetrieveAction(Key<Product> product) {
		this.product = product;
	}

	public Key<Product> getProductKey() {
		return this.product;
	}

	@Override
	public String getServiceName() {
		return ActionImpl.DEFAULT_SERVICE_NAME + "ProductRetrieve";
	}

	@Override
	public boolean isSecured() {
		// TODO Auto-generated method stub
		return false;
	}
}
